package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.invoicings.entity.PurchaseReturnOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PurchaseReturnOrderMapper extends BaseMapper<PurchaseReturnOrder> {

    /**
     * 根据id查询采购退货单
     * @return
     */
    PurchaseReturnOrder selectPurchaseReturnOrderById(Integer id);

    /**
     * 查询所有采购退货单
     * @return
     */
    List<PurchaseReturnOrder> selectPurchaseReturnOrderAll(Map<String, Object> map);

    /**
     * 查询下拉所有采购退货单
     * @return
     */
    List<PurchaseReturnOrder> selectPurchaseReturnOrder();

}
